package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleKeyword;
import com.caigou.bean.cms.param.ArticleKeywordParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleKeywordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleKeyword record);

    int insertSelective(ArticleKeyword record);

    ArticleKeyword selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleKeyword record);

    int updateByPrimaryKey(ArticleKeyword record);

    List<ArticleKeyword> findArticleKeywordsByParam(ArticleKeywordParam param);

    List<ArticleKeyword> findAllArticleKeywords();

    ArticleKeyword findArticleKeywordsByKeyword(String keyword);


    int deleteByCapitalAndIds(@Param("capital") String capital, @Param("ids") List<Integer> ids);

    List<ArticleKeyword> findArticleKeywordsByAlias(@Param("alias") List<String> alias);

    List<ArticleKeyword> findArticleKeywordsByIds(int[] ids);

    List<ArticleKeyword> findArticleKeywordsByArticleIds(@Param("ids") List<String> ids);

    ArticleKeyword findArticleKeyword(String keyword);

    ArticleKeyword findArticleAlias(String alias);
}
